﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Formularios/Principal.Master" AutoEventWireup="true"
    CodeBehind="FiltroRed.aspx.cs" Inherits="wRegPadron.Formularios.FiltroRed" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:Label runat="server" ID="lblTitulo"></asp:Label>
    <p>
        <small>
            <asp:Label runat="server" ID="lblDescripcion"></asp:Label></small></p>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
    <asp:UpdatePanel runat="server" ID="up1">
        <ContentTemplate>
            <div class="form-horizontal">
                <div class="control-group">
                    <label for="txtNombre" class="control-label">
                        Nombre:</label>
                    <div class="controls">
                        <asp:TextBox runat="server" ID="txtNomnre"></asp:TextBox>
                    </div>
                </div>
                <div class="control-group">
                    <label for="txtNombre" class="control-label">
                        Descripción</label>
                    <div class="controls">
                        <asp:TextBox runat="server" ID="TextBox1"></asp:TextBox>
                    </div>
                </div>
                <div class="control-group">
                    <label for="txtNombre" class="control-label">
                        Comando</label>
                    <div class="controls">
                        <asp:TextBox runat="server" ID="TextBox2"></asp:TextBox>
                    </div>
                </div>
                <div class="control-group">
                    <div class="controls">
                        <asp:Button runat="server" CssClass="btn btn-primary" ID="btnGuardar" 
                            Text="Guardar" onclick="btnGuardar_Click" />
                        <asp:Button runat="server" CssClass="btn btn-primary" ID="btnEditar" 
                            Text="Editar" onclick="btnEditar_Click" />
                    </div>
                </div>
                <div>
                    <asp:Repeater runat="server" ID="rFiltros">
                        <HeaderTemplate>
                            <table>
                                <thead>
                                    <tr>
                                        <th>
                                            Nombre
                                        </th>
                                        <th>
                                            Decripción
                                        </th>
                                        <th>
                                            Comandos
                                        </th>
                                    </tr>
                                </thead>
                                <tbody>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <tr>
                                <td>
                                    <asp:HiddenField runat="server" ID="hfIdFiltro" Value='<%#DataBinder.Eval(Container.DataItem,"")%>' />
                                    <asp:Label ID="lblNombre" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"")%>'></asp:Label>
                                </td>
                                <td>
                                    <asp:Label ID="lblDescripcion" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"")%>'></asp:Label>
                                </td>
                                <td>
                                    <asp:Label runat="server" ID="lblComandos" Text='<%#DataBinder.Eval(Container.DataItem,"")%>'></asp:Label>
                                </td>
                                <td>
                                    <asp:LinkButton runat="server" ID="btnSelecionar" CommandName="Seleccionar" CssClass="btn btn-info">&nbsp;<i class="icon-ok icon-white"></i>&nbsp;</asp:LinkButton>
                                </td>
                                <td>
                                    <asp:LinkButton runat="server" ID="btnEliminar" CommandName="Eliminar" CssClass="btn btn-danger">&nbsp;<i class="icon-remove icon-white"></i>&nbsp;</asp:LinkButton>
                                </td>
                            </tr>
                        </ItemTemplate>
                        <FooterTemplate>
                            </tbody> </table>
                        </FooterTemplate>
                    </asp:Repeater>
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
